package com.java01.string.format;

public class StringFormat1 {

	public static void main(String[] args) {
		String output = String.format("%1$s %2$2s %3$2s", "Apple","Banana","Cherry");
		System.out.println(output);
		
		output = String.format("I like to eat %1$s, %2$2s, and %3$2s.", "Apple","Banana","Cherry");
		System.out.println(output);
	}
}
